﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BatDongSan
{
    public partial class NewsDetail : System.Web.UI.Page
    {
        public static int _idparent, _idNews;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    _idparent = Convert.ToInt32(Request.QueryString["idt"]);
                    _idNews = Convert.ToInt32(Request.QueryString["id"]);
                    //Utility.LoadHeaderNewsDetail(Page, Global.idCulture(), _idNews, Global.strConnect());
                    if (_idparent > 0)
                    {
                        Uct_News_Detail1.LoadInfo(_idparent, _idNews);
                    }
                    else
                    {
                        Uct_News_Detail1.LoadInfo(1, _idNews);
                    }
                }
                catch { }
            }
        }
    }
}